//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public License
// along with this program.  If not, see http://www.gnu.org/licenses/.
// 

package org.mixim.modules.netw;

//import org.mixim.base.modules.BaseNetwLayer;

simple FlowMultiplexer
{
    parameters:
        int numOut = default(1);                   // number of NICs  
        int numIn = default(1);                   // number of APPs   
        int nicToUse = default(-1);				// -1 BOTH, 0 nic0, 1 nic1
        
        @display("i=block/classifier");
        @class(FlowMultiplexer);
        
    gates:
        //output upperLayerOut;
        //input upperLayerIn;

        //output upperControlOut;
        //input upperControlIn;

        output upperMultiLayerOut[numIn];
        input upperMultiLayerIn[numIn];

        output upperMultiControlOut[numIn];
        input upperMultiControlIn[numIn];

        input lowerMultiLayerIn[numOut];
        input lowerMultiControlIn[numOut];

        output lowerMultiLayerOut[numOut];
        output lowerMultiControlOut[numOut];
}